#include "adc.h"
#include <Arduino.h>

int sensorPin = A0;   // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor

void AdcInit(void)
{

}

void AdcTask(u32 tick)
{
  if ((tick % 200) == 0) {
      sensorValue = analogRead(sensorPin);
      // Serial.printf("adcValue %d\n", sensorValue);
  }
}

int AdcGetValue(void)
{
  return sensorValue;
}